<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Bayesian Network: bn::cpt_manager Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Bayesian Network
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>bn</b></li><li class="navelem"><a class="el" href="classbn_1_1cpt__manager.html">cpt_manager</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classbn_1_1cpt__manager-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">bn::cpt_manager Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A manager class of some CPTs corresponding to each nodes.  
 <a href="classbn_1_1cpt__manager.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="cpt_8hpp_source.html">cpt.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a717323872845717770a667b47e0ce88b"><td class="memItemLeft" align="right" valign="top"><a id="a717323872845717770a667b47e0ce88b"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>cpt_type</b> = <a class="el" href="classbn_1_1cpt.html">cpt</a></td></tr>
<tr class="separator:a717323872845717770a667b47e0ce88b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97f5a5f1e8c26c1c69858dbfa9210620"><td class="memItemLeft" align="right" valign="top"><a id="a97f5a5f1e8c26c1c69858dbfa9210620"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>node_type</b> = component::node_ptr</td></tr>
<tr class="separator:a97f5a5f1e8c26c1c69858dbfa9210620"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a14706adf5f0b9ec4f94628e4a8a1a43d"><td class="memItemLeft" align="right" valign="top"><a id="a14706adf5f0b9ec4f94628e4a8a1a43d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1cpt__manager.html#a14706adf5f0b9ec4f94628e4a8a1a43d">cpt_manager</a> ()=default</td></tr>
<tr class="memdesc:a14706adf5f0b9ec4f94628e4a8a1a43d"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Default ctor) <br /></td></tr>
<tr class="separator:a14706adf5f0b9ec4f94628e4a8a1a43d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65bf22a246a82147fdb83bba68c1e155"><td class="memItemLeft" align="right" valign="top"><a id="a65bf22a246a82147fdb83bba68c1e155"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1cpt__manager.html#a65bf22a246a82147fdb83bba68c1e155">~cpt_manager</a> ()=default</td></tr>
<tr class="memdesc:a65bf22a246a82147fdb83bba68c1e155"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Default dtor) <br /></td></tr>
<tr class="separator:a65bf22a246a82147fdb83bba68c1e155"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac8b96ac9f6714005bc5fc790441e815"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbn_1_1cpt.html">cpt_type</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1cpt__manager.html#aac8b96ac9f6714005bc5fc790441e815">enroll</a> (node_type const &amp;node, <a class="el" href="classbn_1_1cpt.html">cpt_type</a> const &amp;<a class="el" href="classbn_1_1cpt.html">cpt</a>)</td></tr>
<tr class="memdesc:aac8b96ac9f6714005bc5fc790441e815"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register CPT to this CPT manager.  <a href="#aac8b96ac9f6714005bc5fc790441e815">More...</a><br /></td></tr>
<tr class="separator:aac8b96ac9f6714005bc5fc790441e815"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b561a118dfde15785294db332eb1dcb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbn_1_1cpt.html">cpt_type</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1cpt__manager.html#a8b561a118dfde15785294db332eb1dcb">enroll</a> (node_type const &amp;node, <a class="el" href="classbn_1_1cpt.html">cpt_type</a> &amp;&amp;<a class="el" href="classbn_1_1cpt.html">cpt</a>)</td></tr>
<tr class="memdesc:a8b561a118dfde15785294db332eb1dcb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register CPT to cpt_list.  <a href="#a8b561a118dfde15785294db332eb1dcb">More...</a><br /></td></tr>
<tr class="separator:a8b561a118dfde15785294db332eb1dcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40b8026c5e356912aa9b7f9ee219db66"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1cpt__manager.html#a40b8026c5e356912aa9b7f9ee219db66">unenroll</a> (node_type const &amp;node)</td></tr>
<tr class="memdesc:a40b8026c5e356912aa9b7f9ee219db66"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove CPT corresponded to argument node from cpt_list.  <a href="#a40b8026c5e356912aa9b7f9ee219db66">More...</a><br /></td></tr>
<tr class="separator:a40b8026c5e356912aa9b7f9ee219db66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07a7bded51671a92626b4737b8435de4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbn_1_1cpt.html">cpt_type</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1cpt__manager.html#a07a7bded51671a92626b4737b8435de4">operator[]</a> (node_type const &amp;node)</td></tr>
<tr class="memdesc:a07a7bded51671a92626b4737b8435de4"><td class="mdescLeft">&#160;</td><td class="mdescRight">CPT access operator.  <a href="#a07a7bded51671a92626b4737b8435de4">More...</a><br /></td></tr>
<tr class="separator:a07a7bded51671a92626b4737b8435de4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14f03f543695c769641ba4d2ed46761e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbn_1_1cpt.html">cpt_type</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1cpt__manager.html#a14f03f543695c769641ba4d2ed46761e">at</a> (node_type const &amp;node)</td></tr>
<tr class="memdesc:a14f03f543695c769641ba4d2ed46761e"><td class="mdescLeft">&#160;</td><td class="mdescRight">CPT access.  <a href="#a14f03f543695c769641ba4d2ed46761e">More...</a><br /></td></tr>
<tr class="separator:a14f03f543695c769641ba4d2ed46761e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9f641392ccc1b1b0cc1361c270b9142"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbn_1_1cpt.html">cpt_type</a> const  &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1cpt__manager.html#af9f641392ccc1b1b0cc1361c270b9142">at</a> (node_type const &amp;node) const</td></tr>
<tr class="memdesc:af9f641392ccc1b1b0cc1361c270b9142"><td class="mdescLeft">&#160;</td><td class="mdescRight">CPT access (const version)  <a href="#af9f641392ccc1b1b0cc1361c270b9142">More...</a><br /></td></tr>
<tr class="separator:af9f641392ccc1b1b0cc1361c270b9142"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A manager class of some CPTs corresponding to each nodes. </p>
<p>CPT is unique to each node. One node correspond to one CPT. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a14f03f543695c769641ba4d2ed46761e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14f03f543695c769641ba4d2ed46761e">&#9670;&nbsp;</a></span>at() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbn_1_1cpt.html">cpt_type</a>&amp; bn::cpt_manager::at </td>
          <td>(</td>
          <td class="paramtype">node_type const &amp;&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>CPT access. </p>
<p>If list does not have it, throw exception. </p>

</div>
</div>
<a id="af9f641392ccc1b1b0cc1361c270b9142"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9f641392ccc1b1b0cc1361c270b9142">&#9670;&nbsp;</a></span>at() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbn_1_1cpt.html">cpt_type</a> const&amp; bn::cpt_manager::at </td>
          <td>(</td>
          <td class="paramtype">node_type const &amp;&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>CPT access (const version) </p>
<p>If list does not have it, throw exception. </p>

</div>
</div>
<a id="aac8b96ac9f6714005bc5fc790441e815"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac8b96ac9f6714005bc5fc790441e815">&#9670;&nbsp;</a></span>enroll() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbn_1_1cpt.html">cpt_type</a>&amp; bn::cpt_manager::enroll </td>
          <td>(</td>
          <td class="paramtype">node_type const &amp;&#160;</td>
          <td class="paramname"><em>node</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classbn_1_1cpt.html">cpt_type</a> const &amp;&#160;</td>
          <td class="paramname"><em>cpt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Register CPT to this CPT manager. </p>
<p>A node corresponding to CPT is given from argument menber function(cpt.node()).</p>
<dl class="section return"><dt>Returns</dt><dd>instance of cpt resistered to CPT manager. </dd></dl>

</div>
</div>
<a id="a8b561a118dfde15785294db332eb1dcb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b561a118dfde15785294db332eb1dcb">&#9670;&nbsp;</a></span>enroll() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbn_1_1cpt.html">cpt_type</a>&amp; bn::cpt_manager::enroll </td>
          <td>(</td>
          <td class="paramtype">node_type const &amp;&#160;</td>
          <td class="paramname"><em>node</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classbn_1_1cpt.html">cpt_type</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>cpt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Register CPT to cpt_list. </p>
<p>A node corresponding to CPT is given from argument menber function(cpt.node()). After call, argument will be moved and invalid.</p>
<dl class="section return"><dt>Returns</dt><dd>instance of cpt resistered to CPT manager. </dd></dl>

</div>
</div>
<a id="a07a7bded51671a92626b4737b8435de4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07a7bded51671a92626b4737b8435de4">&#9670;&nbsp;</a></span>operator[]()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbn_1_1cpt.html">cpt_type</a>&amp; bn::cpt_manager::operator[] </td>
          <td>(</td>
          <td class="paramtype">node_type const &amp;&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>CPT access operator. </p>
<p>If list does not have it, create and resister new CPT. </p>

</div>
</div>
<a id="a40b8026c5e356912aa9b7f9ee219db66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40b8026c5e356912aa9b7f9ee219db66">&#9670;&nbsp;</a></span>unenroll()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void bn::cpt_manager::unenroll </td>
          <td>(</td>
          <td class="paramtype">node_type const &amp;&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Remove CPT corresponded to argument node from cpt_list. </p>
<p>If CPT is not found, this function is no effect. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>bayesian/<a class="el" href="cpt_8hpp_source.html">cpt.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
